package org.footito.android.api;

public class RefreshParams {
	private String publishAfter;
	private int limit = -1;
	private int offset = -1;
	private int teamId = -1;

	/**
	 * 
	 * @param publishAfter
	 * @param limit
	 *            Use negative value for base limit
	 * @param offset
	 * @param teamId
	 */
	public RefreshParams(String publishAfter, int limit, int offset, int teamId) {
		super();
		this.publishAfter = publishAfter;
		this.limit = limit;
		if (this.publishAfter == null || this.publishAfter.equalsIgnoreCase("0") || this.publishAfter.equalsIgnoreCase(""))
			this.limit = 30;
		this.offset = offset;
		this.teamId = teamId;
	}

	/**
	 * @return the limit
	 */
	public int getLimit() {
		return limit;
	}

	/**
	 * @return the offset
	 */
	public int getOffset() {
		return offset;
	}

	/**
	 * @return the publishAfter
	 */
	public String getPublishAfter() {
		return publishAfter;
	}

	/**
	 * @return the teamId
	 */
	public int getTeamId() {
		return teamId;
	}
}
